package com.example.sourcecodelearning;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableFeignClients
@EnableAsync
// 扫描指定包，这也是 module-xxx 不需要通过 SPI 导出也能使用 Controller 的原因
@SpringBootApplication(scanBasePackages = {"${info.base-package}.sourcecodelearning", "${info.base-package}.module"})
public class SourceCodeLearningApplication {

    public static void main(String[] args) {
        SpringApplication.run(SourceCodeLearningApplication.class, args);
    }

}
